<?php

namespace App\Lib\Rooms\Events;

use App\Model\RoomsModel;
use App\Model\UsersModel;

/**
 * 创建房间
 * Class RoomCreatedEvent
 * @package App\Lib\Rooms\Events
 */
class RoomCreatedEvent
{
    /**
     * 房间
     * @var RoomsModel
     */
    public $room;

    /**
     * 开房者
     * @var UsersModel
     */
    public $renter;

    /**
     * 房主
     * @var UsersModel
     */
    public $owner;

    public function __construct(RoomsModel $room, UsersModel $owner, UsersModel $renter)
    {
        $this->room = $room;
        $this->owner = $owner;
        $this->renter = $renter;
    }
}